//
//  GNTagViewCellModel.m
//  SuperApp
//
//  Created by wmz on 2021/6/29.
//  Copyright © 2021 chaos network technology. All rights reserved.
//

#import "GNTagViewCellModel.h"
@implementation GNTagViewCellModel
- (instancetype)init{
    if (self = [super init]) {
        self.userEnable = YES;
        self.cornerRadius = PostNum(6);
        self.bgColor = wColor_eee;
        self.bgSelectColor = wColor_Main;
        self.textColor = wColor_3;
        self.textSelectColor = UIColor.whiteColor;
        self.space = PostNum(32);
        self.collectionViewBgColor = wColor_bg;
        self.contentInset =  UIEdgeInsetsMake(PostT, PostL, PostT, PostL);
        self.minimumLineSpacing = PostT;
        self.minimumInteritemSpacing = PostT;
        self.itemSizeH = PostNum(26);
    }
    return self;
}
- (NSArray *)tagArr{
    if (!_tagArr) {
        _tagArr = NSArray.new;
    }
    return _tagArr;
}

- (NSMutableArray *)imageArr{
    _imageArr = NSMutableArray.new;
    for (BaseCellModel *model in self.dataSource) {
        if (!model.isSelected && [model.imageTitle isKindOfClass:UIImage.class]
//                                  ||([model.imageTitle isKindOfClass:NSString.class] && [model.imageTitle hasPrefix:@"http"]))
            )
        [_imageArr addObject:model.imageTitle];
    }
    return _imageArr;
}
@end
